package com.pro.common.log.warn.enums;

import com.pro.common.api.enums.IEnumModules;
import com.pro.framework.api.enums.IEnumStr;
import com.pro.framework.api.mq.IMqModule;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.Map;
import java.util.stream.Collectors;

@AllArgsConstructor
@Getter
public enum EnumLogModule implements IEnumStr, IEnumModules, IMqModule {
    admin("admin", "管理员"),
    user("user", "用户"),
    userFile("user-file", "用户文件"),
    siteContent("site-content", "站点信息"),
    shop("shop", "店铺"),
    goodsCollect("goods-collect", "采集"),
    goodsLaunchTemu("goods-launch-temu", "商品发布temu"),
    goodsLaunchShein("goods-launch-shein", "商品发布shein"),
    goodsLaunchTiktok("goods-launch-tiktok", "商品发布tiktok"),
    pay("pay", "支付"),
    websocket("websocket", "websocket"),
//    agent("agent", "代理"),
//    message("message", "消息"),
//    goodsLaunchTiktok("goods-launch-tiktok", "商品发布tiktok"),
    goodsOrder("goods-order", "商品订单"),
    sync("sync", "同步"),
    ;
    private final String serviceName;
    private final String label;
    public static final Map<String, EnumLogModule> MAP = Arrays.stream(values()).collect(Collectors.toMap(EnumLogModule::getServiceName, o -> o));
}
